package Entidad;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;


@Entity
public class Soundtrack implements Serializable {

    @Id private String picture;
    
    @OneToMany(mappedBy="soundtrack")
    private List<Song> soundtrack_song = new ArrayList<>();
    
    @OneToOne(mappedBy="soundtrack")
    private Movie movie;

    public Soundtrack() {
    }

    public Soundtrack(String picture, Movie movie, List<Song> soundtrack_song) {
        this.picture = picture;
        this.soundtrack_song = soundtrack_song;
        this.movie = movie;
    }
    
    public Movie getMovie() {
        return movie;
    }

    public void setMovie(Movie movie) {
        this.movie = movie;
    }

    public List<Song> getSoundtrack_song() {
        return soundtrack_song;
    }

    public void setSoundtrack_song(List<Song> soundtrack_song) {
        this.soundtrack_song = soundtrack_song;
    }
    
    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }
    
}
